import Vue from 'vue'
import App from './App'
import router from './router'
import Mint from 'mint-ui'
import store from './store'
import VueResource from 'vue-resource'
import 'mint-ui/lib/style.css'
import './assets/css/common.css'
import LazyLoad from './components/lazyLoad.js'
Vue.config.productionTip = false


Vue.use(Mint)
Vue.use(VueResource)
Vue.use(LazyLoad);
/* eslint-disable no-new */



router.afterEach(route => {
  document.body.scrollTop = 0
  document.documentElement.scrollTop = 0
  window.onscroll = null
  setTimeout(() => {
    store._mutations.completeLoad[0]()
  }, 100)
})
new Vue({
  el: '#app',
  router,
  store,
  template: '<App/>',
  components: { App }
})
